package com.seed.core.action;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.seed.core.enumeration.ActionType;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class GetAction extends Action {

    private String declare;

    public String getDeclare() {
        return declare;
    }

    public void setDeclare(String declare) {
        this.declare = declare;
    }

    @Override
    public Action copy() {
        return null;
    }

    @Override
    public List<RequestMethod> getMethods() {
        return List.of(RequestMethod.GET);
    }
}
